﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TongTongMall.Configuration.Startup;

namespace TongTongMall.Redis.Cache.Configuration
{
    public static class RedisConfigurationExtensions
    {
        public static IRedisConfiguration MallWeb(this IModuleConfigurations configurations)
        {
            return configurations.Configuration.GetOrCreate("Modules.TongTongMall.Redis", () => configurations.Configuration.IocManager.Resolve<IRedisConfiguration>());
        }
    }
}
